package com.xb.cloud.common.sms;

import java.util.Date;

public class VerifyCode {
	private String value;
	private Date createTime;

	public VerifyCode randomCode() {
		int code = (int) ((Math.random() * 9 + 1) * 100000);// 6位验证码
		this.value = String.valueOf(code);
		this.createTime = new Date();
		return this;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
